import { createApp } from 'vue'
import { createRouter,createWebHistory } from 'vue-router';
import './style.css'
import App from './App.vue'
import Add from './components/Add.vue';
// import Index from './components/Index.vue'
import Edit from './components/Edit.vue';
import Home from './components/Home.vue';
// import Set from './components/Set.vue'
const router = createRouter({
  history:createWebHistory(),
  routes:[
      {path:'/home',component:Home},
      { path: '/edit/:id', name: 'Edit', component: Edit },
      {path:'/add',name:'edit',component:Add},
      {path:'/',component:App},
      // {path:'/index',component:Index},
      // {path:'/set',component:Set}
  ]
});
let app = createApp(App);
app.use(router);
app.mount('#app');
